Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OrganizedConnectedComponentSegmentation fix #1800

Merged

Conversation

mtsep
Copy link
Contributor

@mtsep mtsep commented Jan 16, 2017

Fixed Issue #1798

Fixed a bug in the boundary checking code in
organized_connected_component_segmentation.hpp, line 103:

if (x >= 0 && y < int(labels->width) && y >= 0 && y < int(labels->height) && labels->points[index].label == label)
break;

Replaced the code y < int(labels->width) with x < int(labels->width), since the previous condition did not check the upper boundary of x and was obviously a typo that lead to out-of-bounds access

@jspricke jspricke merged commit a83e654 into PointCloudLibrary:master Jan 16, 2017
@jspricke
Copy link
Member

Thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants